import Layout from "@/layout";
import AppMain from "@/layout/components/AppMain.vue";

const hammerTool = {
  path: "/hammerTool",
  component: Layout,
  redirect: "/hammerTool/excel_JSON",
  name: "SystemManagement",
  meta: {
    title: "锤子工具",
    icon: "table",
  },
  children: [
    {
      path: "excel_JSON",
      component: () => import("@/views/hammerTool/excel_JSON"),
      name: "excel_JSON",
      meta: { title: "Excel转JSON" },
    },
    {
      path: "aes_exchange",
      component: () => import("@/views/hammerTool/aes_exchange"),
      name: "aes_exchange",
      meta: { title: "AES转译" },
    },

    {
      path: "image_admin",
      component: AppMain,
      name: "image_admin",
      meta: { title: "图片管理" },
      children: [
        {
          path: "image_compress",
          component: () => import("@/views/hammerTool/image_compress"),
          name: "image_compress",
          meta: { title: "图片压缩" },
        },
        {
          path: "image_exchange",
          component: () => import("@/views/hammerTool/image_exchange"),
          name: "image_exchange",
          meta: { title: "base64编译" },
        },
        {
          path: "image_watermark",
          component: () => import("@/views/hammerTool/image_watermark"),
          name: "image_watermark",
          meta: { title: "图片水印" },
        },
      ],
    },
  ],
};

export default hammerTool;
